package demo.spring.boot.dev;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lushun.chen on 2017/3/24.
 *
 * @author lushun.chen
 */
@RestController
@RequestMapping("/hello")
public class BeanDemoController {
    @Autowired
    private Integer integer;

    @RequestMapping("/")
    public Object demo(@RequestBody JavaBeab bean,
                       ModelMap model) {
        return bean;
    }
}
